package com.pz.gulimall.member.controller;

import com.pz.gulimall.common.utils.R;
import com.pz.gulimall.member.entity.MemberFocusEntity;
import com.pz.gulimall.member.service.MemberFocusService;
import com.pz.gulimall.member.vo.ResponseFocusReqVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

@RestController
@RequestMapping("member/focus")
public class MemberFocusController {
    @Autowired
    private MemberFocusService memberFocusService;

    /**
     * 获取其他用户关注我的数据列表
     */
    @GetMapping("/list-otherFocusMe/{userId}")
    public R getOtherFocusMe(@PathVariable Long userId) {
        List<MemberFocusEntity> ans = memberFocusService.queryOtherFocusMe(userId);
        return R.okData(ans);
    }
}
